package br.ucb.sispro.persistencia;

import java.util.List;

import br.ucb.sispro.model.Entity;

public interface IGenericDAO <E extends Entity>{
	public long save(E entity);
	public void update (E entity);
	public void delete (E entity);
	public List<E> findByCriteria(E entity, String value);
	public List<E> findByHQL(E entity, String value);
	List<E> getList(E entity);
	public List<E> findByNamedQuery(String query,String valor);
	public E load(String entity,long id);
 
}
